<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='js/vue.js'></script>
</head>

<body>
    <div id='app'>
        {{msg}}

        <hr>
        <father></father>
    </div>
    <script type='text/javascript'>

        /* 创建son组件 */
        Vue.component('son', {
            data() {
                return {}
            }, template: `
                <li>我是son组件</li>
            `
        })
        Vue.component('father', {
            data() {
                return {}
            },
            template: `
                <ul class='father'>
                这是father组件
                ======
                <son></son>
                </ul>
            `
        })
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue'
            }
        });

    </script>
</body>

</html>